﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Web;

namespace RoleBasedSecurity.Generics
{
    public class GIdentity : IIdentity
    {
        private string _AuthenticationType;
        private string _Name;
        private bool _IsAuthenticated;

        public GIdentity(string name)
        {
            _Name = name;
        }
        public GIdentity(string name, string type)
        {
            _AuthenticationType = type;
            _Name = name;
        }

        public GIdentity(string name, string type, bool IsAuthenticated)
        {
            _AuthenticationType = type;
            _Name = name;
            _IsAuthenticated = IsAuthenticated;
        }

        public string AuthenticationType
        {
            get { return _AuthenticationType; }
        }

        public bool IsAuthenticated
        {
            get { return _IsAuthenticated; }
        }

        public string Name
        {
            get { return _Name; }
        }
    }
}